%p
	%b= @blog_post.user_id
%p
	%b= @blog_post.title
 
%p= @blog_post.content
 

%p{style: "float: right;"}
= link_to "Delete", @blog_post, method: :delete, confirm: "Are you sure you want to delete this post?"
%p{style: "clear: both;"}
= link_to 'Back', user_blog_posts_path(params[:user_id])

- if @blog_post.comments.size > 0
	%h2 Comments
	- for comment in @blog_post.comments
		%p= comment.content
		-#%p{style: "float: right;"}
		-#= link_to "Delete", @blog_post, method: comment.delete, confirm: "Are you sure you want to delete this comment?"
%h2 New Comment
= form_for [@blog_post, Comment.new] do |f|
	%p
	%p= f.text_area :content, :rows => 10
	%p= f.submit